import tensorflow as tf
import matplotlib.pyplot as plt
nor=tf.random_normal([1000])
with tf.Session() as session:
    nor_data=nor.eval()
    print(nor_data[:6])
    plt.hist(nor_data)
    plt.show()
tf.random_normal功能為產生常態分佈的亂數


最近要期末了比較忙,先發這樣,之後再補.